//
//  RealtimeModel.m
//  天气预报
//
//  Created by mac on 16/1/21.
//  Copyright © 2016年 YF_S. All rights reserved.
//

#import "RealtimeModel.h"

@implementation RealtimeModel

-(void)setAtributes:(NSDictionary *)dic{

    [super setAtributes:dic];
    
    //wind
    NSDictionary *wind = [dic objectForKey:@"wind"];
    
    _winModel = [[WindModel alloc]initWithDic:wind];
    
   
    //weather
    NSDictionary *weather = [dic objectForKey:@"weather"];
    
    _weatherModel = [[WeatherModel alloc]initWithDic:weather];
}

@end
